// 检测前端传递来的参数是否符合要求
import { IsNotEmpty, IsString } from 'class-validator';
export class BookDto {
  id: number;

  @IsNotEmpty({ message: 'Book name cannot be empty' })
  @IsString()
  name: string;

  @IsString()
  auther: string;

  @IsString()
  releaseTime: string;

  @IsString()
  briefContent: string;

  isDel: number;
}
